<?php
/*
 * Created on 22.12.2005
 *
 */

class c_actionparamHandler 
{

    function startElement (& $sender, $attrs)
    {
        $parent = $sender->topParent();
        if ($parent['tag'] != 'execute')
            die ("Parent of actionparam must be execute\n");
        if (!$attrs['value'] || !$attrs['name'])
        {
            die ("Attribute name and value are missing at param tag\n");
        }
        $sender->appendCode('$__'."actionform->set(".$attrs['name'].", ".$attrs['value'].");\n");        
    }
    
    function endElement (& $sender)
    {
    }

}

?>
